<#assign spaceTitle="" />
<#if spaceInfo?exists && spaceInfo.title?has_content>
	<#assign spaceTitle=spaceInfo.title + " - " + sitename />
<#else>
	<#assign spaceTitle=spaceUser.alias + " - " + sitename />
</#if>

<#macro head title=spaceTitle keyword=seo_keyword description=seo_description>
<#import "/META-INF/spring.ftl" as spring />
<#import "/META-INF/mspring.ftl" as mspring />
<#import "space_macro.ftl" as space />
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${title}</title>
<meta name="Keywords" content="${keyword!""}"/>
<meta name="Description" content="${description!""}"/>
<link rel="icon" type="image/png" href="${base}/images/favicon.ico" />
<link media="all" href="${base}/ui/puerh/css/puerh.all.css" rel="stylesheet">
<link media="all" href="${template_url}/style/ucenter.css" rel="stylesheet">
<link media="all" href="${template_url}/style/common.css" rel="stylesheet">
<@m.widget path="/script/script_variable" cache=false />
<script type="text/javascript" src="${base}/script/jquery.js"></script>
<script type="text/javascript" src="${template_url}/script/common.js"></script>
<style type="text/css">
	.g-sideleft{width:280px;margin-right:-280px;}
	.g-content-container{margin-left:290px;}
</style>
</head>

<body>
	<#include "../topbar.ftl">
	<@topbar />
	<div class="body">
		<div class="g-mainbody f-cb">
			<div class="g-title">
				<div id="header" class="header">
					<h2>
						<a href="${spaceUrl}"><#if spaceInfo?exists && spaceInfo.title?has_content>${spaceInfo.title}<#else>${spaceUser.alias}</#if></a>
						<p><#if spaceInfo?exists && spaceInfo.intro?has_content>${spaceInfo.intro}</#if></p>
					</h2>
					<div class="nav">
						<ul>
							<li><a href="${base}/">${sitename}</a></li>
							<li><a href="${spaceUrl}/t">碎碎念</a></li>
							<#if mine><li><a href="${spaceUrl}/admin" target="_blank">管理</a></li></#if>
						</ul>
					</div>
				</div>
			</div>
</#macro>